﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<photogalleryMVC.Models.AnswerModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AnswerQuestion
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%=Html.ValidationSummary( false)  %>
    <%using (Html.BeginForm("AnswerQuestion", "Account"))
      {%>
        <h1><%=Html.Encode( Model.Question ) %></h1>
        <%=Html.HiddenFor(  m=>m.Mail ) %>
        <p>
            <%=Html.EditorFor( m=>m.Answer )%>
            <%=Html.ValidationMessageFor( m=>m.Answer ) %>
        </p>
        <p>
            <input type="submit" value ="Answer" />
        </p>

      <%}%>
</asp:Content>
